﻿<!DOCTYPE HTML>
<html>
<head>
    <link rel="shortcut icon" href="../static/imgs/favicon.ico">
    <script async="" src="../static/js/analytics.js"></script>
    <script type="text/javascript" async="" src="../static/js/conversion.js"></script>
    <script src="../static/js/allmobilize.min.js" charset="utf-8" id="allmobilize"></script>
    <style type="text/css"></style>
    <meta content="no-siteapp" http-equiv="Cache-Control">
    <link media="handheld" rel="alternate">
    <!-- end 云适配 -->
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <title>我发布的职位-招聘服务-../static/-最专业的互联网招聘平台</title>
    <meta content="23635710066417756375" property="qc:admins">
    <meta name="description" content="../static/是3W旗下的互联网领域垂直招聘网站,互联网职业机会尽在../static/">
    <meta name="keywords"
          content="拉勾,../static/,拉勾招聘,拉钩, 拉钩网 ,互联网招聘,拉勾互联网招聘, 移动互联网招聘, 垂直互联网招聘, 微信招聘, 微博招聘, 拉勾官网, 拉勾百科,跳槽, 高薪职位, 互联网圈子, IT招聘, 职场招聘, 猎头招聘,O2O招聘, LBS招聘, 社交招聘, 校园招聘, 校招,社会招聘,社招">
    <meta content="QIQ6KC1oZ6" name="baidu-site-verification">

    <!-- <div class="web_root"  style="display:none">http://www.lagou.com</div> -->
    <link href="http://www.lagou.com/images/favicon.ico" rel="Shortcut Icon">
    <link href="../static/css/style.css" type="text/css" rel="stylesheet">
    <link href="../static/css/external.min.css" type="text/css" rel="stylesheet">
    <link href="../static/css/popup.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="../static/js/jquery.1.10.1.min.js"></script>
    <script src="../static/js/jquery.lib.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../static/js/ajaxfileupload.js"></script>
    <script src="../static/js/additional-methods.js" type="text/javascript"></script>
    <!--[if lte IE 8]>
    <script type="text/javascript" src="../static/js/excanvas.js"></script>
<![endif]-->
    <script src="../static/js/conv.js" type="text/javascript"></script>
    <script src="../static/js/ajaxCross.json" charset="UTF-8"></script>
</head>
<body>
<div id="body">
    <div id="header">
        <div class="wrapper">
            <a class="logo" href="{{ url('index:index') }}">
                <img width="229" height="43" alt="拉勾招聘-专注互联网招聘" src="../static/images/logo.png">
            </a>
            <ul id="navheader" class="reset">
                <li><a href="{{ url('index:index') }}">首页</a></li>
                <li><a href="{{ url("company:company_list",args=(1,)) }}">公司</a></li>
                <li><a target="_blank" href="#">论坛</a></li>
                <li>
                    <a rel="nofollow" href="#">简历管理</a>
                </li>
                <li class="current"><a rel="nofollow" href="{{ url("position:create_position") }}">发布职位</a></li>
            </ul>
            <dl class="collapsible_menu">
                <dt>
                    <span>{{ user.username }}&nbsp;</span>
                    <span class="red dn" id="noticeDot-1"></span>
                    <i></i>
                </dt>
                {% if company != None %}
                    <dd style="display: none;"><a href="{{ url('position:position_valid') }}">我发布的职位</a></dd>
                    <dd style="display: none;"><a href="{{ url('resume:wait_resume') }}">我收到的简历</a></dd>
                    <dd class="btm" style="display: none;"><a href="{{ url('company:my_company') }}">我的公司主页</a></dd>
                    <dd style="display: none;"><a href="{{ url('resume:user_resume') }}">我要找工作</a></dd>
                    <dd style="display: none;"><a href="{{ url('users:user_setting') }}">帐号设置</a></dd>
                    <dd class="logout" style="display: none;"><a rel="nofollow"
                                                                 href="{{ url('users:logout') }}">退出</a>
                    </dd>
                {% else %}
                    <dd style="display: none;"><a href="{{ url('company:create_company') }}">公司进站</a></dd>
                    <dd style="display: none;"><a href="{{ url('resume:user_resume') }}">我要找工作</a></dd>
                    <dd style="display: none;"><a href="{{ url('users:user_setting') }}">帐号设置</a></dd>
                    <dd class="logout" style="display: none;">
                    <a rel="nofollow" href="{{ url('users:logout') }}">退出</a>
                {% endif %}
            </dl>
        </div>
    </div><!-- end #header -->
    <div id="container">
        <div class="sidebar">
            <a class="btn_create" href="{{ url('position:create_position') }}">发布新职位</a>
            <dl class="company_center_aside">
                <dt>我收到的简历</dt>
                <dd>
                    <a href="{{ url('resume:wait_resume') }}">待处理简历</a>
                </dd>
                <dd>
                    <a href="{{ url('position:inform_interview') }}">已通知面试简历</a>
                </dd>
                <dd>
                    <a href="{{ url('position:unable_resume') }}">不合适简历</a>
                </dd>
                <dd class="btm">
                    <a href="autoFilterResumes.html">自动过滤简历</a>
                </dd>
            </dl>
            <dl class="company_center_aside">
                <dt>我发布的职位</dt>
                <dd>
                    <a href="{{ url('position:position_valid') }}">有效职位</a>
                </dd>
                <dd class="current">
                    <a href="positions.html">已下线职位</a>
                </dd>
            </dl>
        </div><!-- end .sidebar -->
        <div class="content">
            <dl class="company_center_content">
                <dt>
                    <h1>
                        <em></em>
                        有效职位 <span>（共<i style="color:#fff;font-style:normal"
                                        id="positionNumber">{{ position.count() }}</i>个）</span></h1>
                </dt>
                <dd>
                    <form id="searchForm">
                        {{ csrf_input }}
                        <input type="hidden" value="Publish" name="type">
                        <ul class="reset my_jobs">
                            {% for pos in position %}
                                <li data-id="149594">
                                    <h3>
                                        <input hidden class="pos_id" value="{{ pos.id }}">
                                        <a target="_blank" title="{{ pos.position_name }}"
                                           href="http://www.lagou.com/jobs/149594.html">{{ pos.position_name }}</a>
                                        <span>[{{ pos.work_address }}]</span>
                                    </h3>
                                    <span class="receivedResumeNo"><a
                                            href="javascript:;">应聘简历（1）</a></span>
                                    <div>{{ pos.job_nature }} / {{ pos.salary_min }}k-{{ pos.salary_max }}k
                                        / {{ pos.work_year }} / {{ pos.education }}</div>
                                    <div class="c9">发布时间： {{ pos.create_time.date() }}</div>
                                    <div class="links">
                                        <a class="job_refresh"
                                           href="javascript:void(0)">刷新<span>每个职位7天内只能刷新一次</span></a>
                                        <a target="_blank" class="job_edit" href="create.html?positionId=149594">编辑</a>
                                        <a class="job_offline" href="javascript:void(0)">下线</a>
                                        <a class="job_del" href="javascript:void(0)">删除</a>
                                        <script>
                                            $(function () {
                                                // TODO 职位下线
                                                $(".job_offline").click(function () {
                                                    pos_id = $('.pos_id').val();
                                                    params = {
                                                        "pos_id": pos_id,
                                                        "csrfmiddlewaretoken": $("*[name='csrfmiddlewaretoken']").val(),
                                                    };
                                                    $.ajax({
                                                        url: "/positiondownline/",
                                                        type: "post",
                                                        data: JSON.stringify(params),
                                                        headers: {
                                                            'X-CSRFToken': $.cookie('csrftoken')
                                                        },
                                                        async: false,
                                                        contentType: "application/json",
                                                        success: function (resp) {
                                                            if (resp.errno == "0") {
                                                                window.location.reload();
                                                            } else {
                                                                alert(resp.errmsg)
                                                            }
                                                        },
                                                    });
                                                })

                                                // TODO 职位删除
                                                $(".job_del").click(function () {
                                                    pos_id = $('.pos_id').val();
                                                    params = {
                                                        "pos_id": pos_id,
                                                        "csrfmiddlewaretoken": $("*[name='csrfmiddlewaretoken']").val(),
                                                    };
                                                    $.ajax({
                                                        url: "/positiondownline/",
                                                        type: "delete",
                                                        data: JSON.stringify(params),
                                                        headers: {
                                                            'X-CSRFToken': $.cookie('csrftoken')
                                                        },
                                                        async: false,
                                                        contentType: "application/json",
                                                        success: function (resp) {
                                                            if (resp.errno == "0") {
                                                                window.location.reload();
                                                            } else {
                                                                alert(resp.errmsg)
                                                            }
                                                        },
                                                    });
                                                })
                                            })
                                        </script>
                                    </div>
                                </li>
                            {% endfor %}
                        </ul>
                    </form>
                </dd>
            </dl>
        </div><!-- end .content -->
        <script src="../static/js/job_list.min.js" type="text/javascript"></script>
        <div class="clear"></div>
        <input type="hidden" value="74fb1ce14ebf4e2495270b0fbad64704" id="resubmitToken">
        <a rel="nofollow" title="回到顶部" id="backtop"></a>
    </div><!-- end #container -->
</div><!-- end #body -->
<div id="footer">
    <div class="wrapper">
        <a rel="nofollow" target="_blank" href="about.html">联系我们</a>
        <a target="_blank" href="http://www.lagou.com/af/zhaopin.html">互联网公司导航</a>
        <a rel="nofollow" target="_blank" href="http://e.weibo.com/lagou720">拉勾微博</a>
        <a rel="nofollow" href="javascript:void(0)" class="footer_qr">拉勾微信<i></i></a>
        <div class="copyright">&copy;2013-2014 Lagou <a
                href="http://www.miitbeian.gov.cn/state/outPortal/loginPortal.action"
                target="_blank">京ICP备14023790号-2</a></div>
    </div>
</div>

<script src="../static/js/core.min.js" type="text/javascript"></script>
<script src="../static/js/popup.min.js" type="text/javascript"></script>
<script src="../static/js/tongji.js" type="text/javascript"></script>
<!--  -->
<script src="../static/js/analytics01.js" type="text/javascript"></script>
<script type="text/javascript" src="../static/js/h.js"></script>
<script type="text/javascript">
    $(function () {
        $('#noticeDot-1').hide();
        $('#noticeTip a.closeNT').click(function () {
            $(this).parent().hide();
        });
    });
    var index = Math.floor(Math.random() * 2);
    var ipArray = new Array('42.62.79.226', '42.62.79.227');
    var url = "ws://" + ipArray[index] + ":18080/wsServlet?code=314873";
    var CallCenter = {
        init: function (url) {
            var _websocket = new WebSocket(url);
            _websocket.onopen = function (evt) {
                console.log("Connected to WebSocket server.");
            };
            _websocket.onclose = function (evt) {
                console.log("Disconnected");
            };
            _websocket.onmessage = function (evt) {
                //alert(evt.data);
                var notice = jQuery.parseJSON(evt.data);
                if (notice.status[0] == 0) {
                    $('#noticeDot-0').hide();
                    $('#noticeTip').hide();
                    $('#noticeNo').text('').show().parent('a').attr('href', ctx + '/mycenter/delivery.html');
                    $('#noticeNoPage').text('').show().parent('a').attr('href', ctx + '/mycenter/delivery.html');
                } else {
                    $('#noticeDot-0').show();
                    $('#noticeTip strong').text(notice.status[0]);
                    $('#noticeTip').show();
                    $('#noticeNo').text('(' + notice.status[0] + ')').show().parent('a').attr('href', ctx + '/mycenter/delivery.html');
                    $('#noticeNoPage').text(' (' + notice.status[0] + ')').show().parent('a').attr('href', ctx + '/mycenter/delivery.html');
                }
                $('#noticeDot-1').hide();
            };
            _websocket.onerror = function (evt) {
                console.log('Error occured: ' + evt);
            };
        }
    };
    CallCenter.init(url);
</script>

<div id="cboxOverlay" style="display: none;"></div>
<div id="colorbox" class="" role="dialog" tabindex="-1" style="display: none;">
    <div id="cboxWrapper">
        <div>
            <div id="cboxTopLeft" style="float: left;"></div>
            <div id="cboxTopCenter" style="float: left;"></div>
            <div id="cboxTopRight" style="float: left;"></div>
        </div>
        <div style="clear: left;">
            <div id="cboxMiddleLeft" style="float: left;"></div>
            <div id="cboxContent" style="float: left;">
                <div id="cboxTitle" style="float: left;"></div>
                <div id="cboxCurrent" style="float: left;"></div>
                <button type="button" id="cboxPrevious"></button>
                <button type="button" id="cboxNext"></button>
                <button id="cboxSlideshow"></button>
                <div id="cboxLoadingOverlay" style="float: left;"></div>
                <div id="cboxLoadingGraphic" style="float: left;"></div>
            </div>
            <div id="cboxMiddleRight" style="float: left;"></div>
        </div>
        <div style="clear: left;">
            <div id="cboxBottomLeft" style="float: left;"></div>
            <div id="cboxBottomCenter" style="float: left;"></div>
            <div id="cboxBottomRight" style="float: left;"></div>
        </div>
    </div>
    <div style="position: absolute; width: 9999px; visibility: hidden; display: none;"></div>
</div>
</body>
</html>